package edu.sctu.liangyuxiang.day20150512.text2;

/**
 * Created by user06 on 2015/5/12.
 */
public class TextTwo extends TextOne {
    public Student[] student;
    public TextTwo(Student[] student) {
        super(student);
        this.student = student;
    }

    @Override
    public void outPut() {
        int sum = 0;
       for(int i = 0; i<10; i++) {
           if (student[i].getScore() > 60) {
               System.out.println(student[i].getName()+"\b"+student[i].getSex()+"\b"+student[i].getScore()+"\b"+student[i].getAge()+"\b"+student[i].getNumber()+"\b"+ student[i].getAddress());
               sum+=1;
           }
       }
        System.out.println("成绩大于60的同学有：" + sum);
    }
}
